package com.bwie.common.constants;

import com.bwie.common.pojo.res.LoginRes;

/**
 * @description: 系统常量
 * @author DongZl
 */
public class Constants {
    /**
     * 成功标记
     */
    public static final Integer SUCCESS = 200;
    public static final String SUCCESS_MSG = "操作成功";
    /**
     * 失败标记
     */
    public static final Integer ERROR = 500;
    public static final String ERROR_MSG = "操作异常";
    public static final String USER_IS_NOT_FOUND = "用户名不存在";
    public static final String DECRYPT_ERROR = "解密失败";
    public static final String PWD_WRONG = "密码错误";
    public static final long LOGIN_TOKEN_TIMEOUT_NUM = 30 * 4L;// 2个小时
    public static final long SEND_CODE_TIMEOUT_NUM = 1L;
    public static final long CODE_TIMEOUT_NUM = 3L;
    public static final long SEND_TIME_TIMEOUT_NUM = 1L;
    public static final String EXPIRE_TIME_UNIT = "MIN";
    public static final String SEND_CODE_KEY =  "sms:limit:";

    public static final String SEND_TOO_MUCH = "发送过于频繁，请稍后再试";
    public static final String SEND_TIME = "send_time:";
    public static final String CODE_KEY = "code:";
    public static final String SEND_CODE_SUCCESS = "OK";
    public static final String SEND_ERROR = "发送失败";
    public static final String SMS_CODE_EXPIRED = "验证码已失效或与发送时的手机号不匹配";
    public static final String SMS_CODE_WRONG = "验证码错误";
    public static final String PWD_FORMAT_WRONG = "密码长度不小于6位，且必须包含字母和数字";
    public static final String SERVICE_ERROR = "服务器开小差了...";
    public static final String LOGIN_PLEASE = "请先登录";
    public static final int JOIN_USER_NUM = 2;
    public static final String JOIN_USER_VELUE_NULL = "参与用户的值存在空的";
}
